import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;

public class BorrowManage {
    private Scanner sc=new Scanner(System.in);
    private InquireBookManage ibm;
    //借阅管理
    public void home(People p) throws InterruptedException, SQLException, ClassNotFoundException {
        ibm =new InquireBookManage();
        while(true) {
            menuBorrowManage();
            int x = sc.nextInt();
            switch (x) {
                case 1://图书查询
                    ibm.home();
                    break;
                case 2://借阅图书--id
                    borrowBook();
                    break;
                case 3://归还图书
                    backBook();
                    break;
                case 0://返回
                    break;
                default:
                    System.out.println("非法输入");
                    break;
            }
            if(x==0){
                break;
            }
        }
    }





    //还书---id
    public void backBook(){

    }
    //借书---id
    public void borrowBook(){

    }


    //菜单
    public void menuBorrowManage(){
        System.out.println("---------借阅管理---------");
        System.out.println("1.图书查询 2.借阅图书");
        System.out.println("3.归还图书 0.返回");
        System.out.print("请选择=>");
    }

}
